package com.origin.onlinesys.service.modules.user;


import com.origin.onlinesys.domain.modules.interviewsys.Account;
import java.util.List;
import java.util.Map;

/**
 *
 * 账户信息查询
 * Created by Administrator on 2015/1/8.
 */
public interface IAccountService {

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    public  Account selectByUserNameAndPassword(String username, String password);

    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    public  Account selectByUserName(String username);

    List<Account> queryAll();


    public String updatePwd(String userName,String pwd,String newPwd);

    public Account selectInfo(String id);

    public List<Account> selectItem();

    public Map selectByPage(int pageNum,int pageCount,String name,String zoneId);

    public int addUserRole(String rId,String uId);

    public int updateUserRole(String rId,String uId);

    public List<Account> selectUserByRole(String zoneId);

    public List<Account> selectUserByRoleAndJobState(String zoneId);
}
